Package pl.wendigo.chrome.api.backgroundservice

Contains DevTools Protocol BackgroundService domain implementation accessible via BackgroundServiceDomain class.

Types

BackgroundServiceDomain
Link copied to clipboard
class BackgroundServiceDomain : Domain
Defines events for background web platform features.
BackgroundServiceEvent
Link copied to clipboard
data class BackgroundServiceEvent(timestamp: TimeSinceEpoch, origin: String, serviceWorkerRegistrationId: RegistrationID, service: ServiceName, eventName: String, instanceId: String, eventMetadata: List<EventMetadata>)
BackgroundServiceEventReceivedEvent
Link copied to clipboard
data class BackgroundServiceEventReceivedEvent(backgroundServiceEvent: BackgroundServiceEvent) : Event
Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.
ClearEventsRequest
Link copied to clipboard
data class ClearEventsRequest(service: ServiceName)
Represents request frame that can be used with BackgroundService#clearEvents operation call.
EventMetadata
Link copied to clipboard
data class EventMetadata(key: String, value: String)
A key-value pair for additional event information to pass along.
RecordingStateChangedEvent
Link copied to clipboard
data class RecordingStateChangedEvent(isRecording: Boolean, service: ServiceName) : Event
Called when the recording state for the service has been updated.
ServiceName
Link copied to clipboard
enum ServiceName : Enum<ServiceName>
The Background Service that will be associated with the commands/events.
SetRecordingRequest
Link copied to clipboard
data class SetRecordingRequest(shouldRecord: Boolean, service: ServiceName)
Represents request frame that can be used with BackgroundService#setRecording operation call.
StartObservingRequest
Link copied to clipboard
data class StartObservingRequest(service: ServiceName)
Represents request frame that can be used with BackgroundService#startObserving operation call.
StopObservingRequest
Link copied to clipboard
data class StopObservingRequest(service: ServiceName)
Represents request frame that can be used with BackgroundService#stopObserving operation call.